package com.nw.news.news;

import com.nw.news.news.entity.NewEntity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {

    @GET("index")
    Call<NewEntity> getIndex(@Query("key") String key, @Query("type") String type, @Query("page") int page,
                             @Query("page_size") int page_size, @Query("is_filter") int is_filter);

    @GET("/content")
    Call<NewEntity> getContent();

    @GET("/query")
    Call<NewEntity> getWeather(@Query("key") String key, @Query("city") String city);
}
